revealer: Fully set the target state if unmapped during animation
authorCarlos Garnacho <carlosg@gnome.org>
Wed, 19 Dec 2018 18:26:04 +0000 (19:26 +0100)
committerCarlos Garnacho <carlosg@gnome.org>
Wed, 19 Dec 2018 19:53:40 +0000 (20:53 +0100)
commit615f10f7c8dbfd4431430d65ef7266e66d023a82
tree9942da2d8a2dc955e4f11be855e4144afcb5feec
parent38cba6895a5749386954b6de3ac8a6723f4fc5db
revealer: Fully set the target state if unmapped during animation

If the revealer is told do animate and then unrealize itself, we do
(correctly) stop the animation, but used to do a shortcut where we
just set the target state as current.

Other things are dependent on the animation properly finishing though,
like the contained widget child visibility. This may lead to inconsistent
state where gtk_revealer_get_child_revealed() returns TRUE but the child
widget is unmapped, or vice-versa.

Fully finish the animation here, so the child state is coherent the next
time the revealer is mapped. We can also skip notifying on the property
since it will be handled by gtk_revealer_set_position().
gtk/gtkrevealer.c